FROM build-steps-public-registry.cn-beijing.cr.aliyuncs.com/build-steps/alinux3:base-c25f6eae-2025-06-11-10-29-10

RUN yum install -y tar && \
    yum install -y git && \
    yum install -y pigz && \
    yum install -y util-linux && \
    yum install -y procps && \
    yum install -y telnet && \
    yum install -y wget && \
    yum install -y rsync && \
    yum install -y python2 && \
    yum install -y python3 && ln -sv /usr/bin/python3 /usr/bin/python && \
    yum install -y hostname && \
    yum install -y jq && \
    yum install -y zip && \
    yum install -y unzip && \
    yum install -y bzip2 && \
    yum install -y tree && \
    yum install -y gettext && \
    yum install -y ca-certificates && \
    yum install -y gcc g++ re2c && \
    yum install -y autoconf && \
    yum install -y xz && \
    yum install -y nano less && \
    yum install -y which && \
    yum install -y subversion && \
    yum install -y sshpass && \
    dnf install -y dnf-plugins-core && \
    dnf install -y git-lfs && \
    dnf config-manager --add-repo=https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo && \
    dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus && \
    dnf -y install docker-ce-cli --nobest && \
    dnf -y install make && \
    dnf clean all

RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash && \
    rm -rf tmp/*

# 添加时间 20240726 最新rust版本是1.80.0
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:$PATH"

RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone
# 服务器、用户上色，显示绝对路径
COPY ./bashrc /etc/bashrc
COPY ./entry.sh /root/entry.sh
RUN chmod +x /root/*.sh


ENTRYPOINT ["/root/entry.sh"]
